import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("Flutter APP", style: TextStyle(color: Colors.white)),
          backgroundColor: Colors.blue,
        ),
        body: MyHomePage(),
      ),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return GridView.count(
      crossAxisCount: 5, // 每行显示的个数
      children: [
        Icon(Icons.bike_scooter),
        Icon(Icons.ac_unit),
        Icon(Icons.home),
        Icon(Icons.padding),
        Icon(Icons.safety_check),
        Icon(Icons.cake),
        Icon(Icons.circle),
        Icon(Icons.search),
        Icon(Icons.settings),
        Icon(Icons.search),
      ],
    );
  }
}
